//
//  UIColor+MLXSpec.m
//  MLX
//
//  Created by SY on 2018/10/6.
//  Copyright © 2018年 SY. All rights reserved.
//

#import "UIColor+MLXSpec.h"

#define ToolsRGBAlpha(r, g, b, a) [UIColor colorWithRed:((r) / 255.0) green:((g) / 255.0) blue:((b) / 255.0) alpha:(a)]

@implementation UIColor (MLXSpec)
#pragma mark - # 字体
+ (UIColor *)colorTextBlack {
    return [UIColor blackColor];
}

+ (UIColor *)colorTextGray {
    return [UIColor grayColor];
}

+ (UIColor *)colorTextGray1 {
    return ToolsRGBAlpha(160, 160, 160, 1.0);
}

#pragma mark - 灰色
+ (UIColor *)colorGrayBG {
    return ToolsRGBAlpha(239.0, 239.0, 244.0, 1.0);
}

+ (UIColor *)colorGrayCharcoalBG {
    return ToolsRGBAlpha(235.0, 235.0, 235.0, 1.0);
}

+ (UIColor *)colorGrayLine {
    return [UIColor colorWithWhite:0.5 alpha:0.3];
}

+ (UIColor *)colorGrayForChatBar {
    return ToolsRGBAlpha(245.0, 245.0, 247.0, 1.0);
}

+ (UIColor *)colorGrayForMoment {
    return ToolsRGBAlpha(243.0, 243.0, 245.0, 1.0);
}




#pragma mark - 绿色
+ (UIColor *)colorGreenDefault {
    return ToolsRGBAlpha(2.0, 187.0, 0.0, 1.0f);
}


#pragma mark - 蓝色
+ (UIColor *)colorBlueMoment {
    return ToolsRGBAlpha(74.0, 99.0, 141.0, 1.0);
}

#pragma mark - 黑色
+ (UIColor *)colorBlackForNavBar {
    return ToolsRGBAlpha(20.0, 20.0, 20.0, 1.0);
}

+ (UIColor *)colorBlackBG {
    return ToolsRGBAlpha(46.0, 49.0, 50.0, 1.0);
}

+ (UIColor *)colorBlackAlphaScannerBG {
    return [UIColor colorWithWhite:0 alpha:0.6];
}

+ (UIColor *)colorBlackForAddMenu {
    return ToolsRGBAlpha(71, 70, 73, 1.0);
}

+ (UIColor *)colorBlackForAddMenuHL {
    return ToolsRGBAlpha(65, 64, 67, 1.0);
}

@end
